import axios from "@/utils/request.js";

// get文章列表
export const get_post = function (params) {
   return axios({
      url: '/post',
      params
   });
}

// get栏目列表
export const get_category = function () {
   return axios({
      url: '/category'
   });
}

// 发布文章
export const public_post = function (data) {
   return axios({
      method: 'post',
      url: '/post',
      data
   });
}